#!/bin/bash

# 需要依赖 jdk1.8 的环境

if [ -e "jdk-8u202-linux-x64.tar.gz" ]; then
    echo "jdk-8u202-linux-x64.tar.gz 已存在,无需重复下载"
  else
    wget https://download.oracle.com/java/8/latest/jdk-8u202-linux-x64.tar.gz
fi

wget https://dlcdn.apache.org/zookeeper/zookeeper-3.9.2/apache-zookeeper-3.9.2-bin.tar.gz